This makes it easier to only run unit- or automation tests.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2845>
configuration: dbusrunnerconf,
)
-tests = [
+unit_tests = [
'highlighter',
'insertSorted',
'jsParse',
'versionCompare',
]
-foreach test : tests
+foreach test : unit_tests
test(test, run_test,
args: 'unit/@0@.js'.format(test),
+ suite: 'unit',
workdir: meson.current_source_dir())
endforeach
test_name = shell_test['name']
options = shell_test.get('options', [])
- test('shell-' + test_name, dbus_runner,
+ test(test_name, dbus_runner,
+ suite: 'shell',
args: [
test_tool,
'--headless',